<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>HTML 媒体捕获 文件</title>
</head>
<body>
    <label for="">快照</label><input type="file" accept="image/*" capture="camera">
    <label for="">视频</label><input type="file" accept="video/*;capture=camcorder">
    <label for="">音频</label><input type="file" accept="audio/*;capture=microphone">
  
</body>
</html>